import request from '@/utils/request'
export default {

    getPerIdeaById(id) {
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/getPerIdeaById/${id}`,
            //url: `/hr/performance/getPerIdeaById/${id}`,
            method: 'get'
        });
    },


    getPerBilityById(id) {
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/getPerBilityById/${id}`,
            //url: `/hr/performance/getPerBilityById/${id}`,
            method: 'get'
        });
    },




    updatePer(profiles) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/updatePer`,
            //url: `/hr/performance/updatePer`,
            method: 'post',
            data: profiles
           
        });
    },

    addPerformanceAbility(profilesid,yearScarce,quarterScarce){
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/addPerformanceAbility/${profilesid}/${yearScarce}/${quarterScarce}`,
            //url: `/hr/performance/addPerformanceAbility/${profilesid}/${yearScarce}/${quarterScarce}`,
            method: 'get'
        });
    },


    getPerformanceOne(profilesid,yearIdea,quarter){
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/getPerformance/${profilesid}/${yearIdea}/${quarter}`,
            //url: `/hr/performance/getPerformance/${profilesid}/${yearIdea}/${quarter}`,
            method: 'get'
        });
    },



    getByProId(id) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/getPerById/${id}`,
            //url: `/hr/performance/getPerById/${id}`,
            method: 'get'
        });
    },

  
    addPerformance(performance) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/addPerformance`,
            //url: `/hr/performance/addPerformance`,
            method: 'post',
            data: performance
        });
    },
    removeById(id) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/removePerById/${id}`,
            //url: `/hr/performance/removePerById/${id}`,
            method: 'delete'
        });
    },


    getPerformance(){
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/getPerformance`,
            //url: `/hr/performance/getPerformance`,
            method: 'get'
        });
    },
    getPerListPage(page, limit, PerformanceVoQuery) {
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/conditionPer/${page}/${limit}`,
           // url: `/hr/performance/conditionPer/${page}/${limit}`,
            method: 'post',

            data: PerformanceVoQuery
        });
    },

    condition(page, limit, PerformanceVoQuery) {
        return request({
           url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/conditionPer/${page}/${limit}`,
            // url: `/hr/performance/conditionPer/${page}/${limit}`,
            method: 'post',

            data: PerformanceVoQuery
        });
    },
    updatePerformance(id) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/updatePerformance/${id}`,
           // url: `/hr/performance/updatePerformance/${id}`,
            method: 'post',

        });
    },
    
    updatePerIdeaById(id) {
        return request({
           url: `/service-hr-0.0.1-SNAPSHOT/hr/performance/updatePerformanceIdea/${id}`,
            // url: `/hr/performance/updatePerformanceIdea/${id}`,
            method: 'post',

        });
    }
}